﻿using Nancy.Hosting.Self;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FastLotWeb
{
    class Program
    {
        static void Main(string[] args)
        {
            Uri uri = new Uri("http://localhost:5678");
            //非管理员也可以启动
            HostConfiguration hostConfigs = new HostConfiguration();
            hostConfigs.UrlReservations.CreateAutomatically = true;
            NancyHost host = new NancyHost(new CustomBootstrapper(), hostConfigs, uri);
            host.Start();
            Process.Start(uri.ToString() + "views/index.html");
            Console.ReadKey();
        }
    }
}
